#include <qDebug>
#include <iostream>
#include "manager.h"

Manager::Manager(Processor &proc, QObject *parent) : QObject(parent), _network(proc.getPacketHandler())
{

}

Manager::~Manager()
{
}

Api						*Manager::getApi()
{
	Api					*api = new Api(this);

	api->setGui(_gui.getApi());
	api->setNetwork(_network.getApi());
	api->setAudio(_audio.getApi());
	api->setTimer(_timer.getApi());

	return (api);
}